package beans;

import java.io.Serializable;



/**
 * @author Josep M Sobrepere
 *
 */
public class Piece implements Serializable{
	/**
	 * 
	 */
	private Color color;
	/**
	 * 
	 */
	private ChessPiece kind;
	
	/**
	 * This class represents a piece in the chess board
	 * @param color color of the piece
	 * @param kind piece kind
	 */
	public Piece(Color color, ChessPiece kind) {
		super();
		this.color = color;
		this.kind = kind;
	}
	/**
	 * @return the color of the piece
	 */
	public Color getColor() {
		return color;
	}
	/**
	 * @param color sets the color of the piece
	 */
	public void setColor(Color color) {
		this.color = color;
	}
	/**
	 * @return the kind of piece
	 */
	public ChessPiece getKind() {
		return kind;
	}
	/**
	 * @param kind sets the kind of piece
	 */
	public void setKind(ChessPiece kind) {
		this.kind = kind;
	}
		

}
